home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / MIDI_MAN / CMIDICLI.H < prev    next >
Text File  |  1992-03-07  |  2KB  |  46 lines

  1. /*
  2.  *--- CMIDIClient.h ----------------------------------------------------------
  3.  * Copyright ⌐ Paul Ferguson, 1990, 1991, 1992.  All rights reserved.
  4.  *
  5.  * For use with THINK C 5.0 and the THINK Class Library.
  6.  *
  7.  * Description:
  8.  *    A MIDI Manager client object.  Every application which creates MIDI Manager
  9.  *    objects must first create a CMIDIClient object, gMIDIClient.  You should
  10.  *    not create additional CMIDIClient objects.
  11.  *
  12.  *    Refer to the CMIDI Programmer's Manual for a complete desciption of
  13.  *    these objects and methods.
  14.  *
  15.  *----------------------------------------------------------------------------
  16.  */
  17. #pragma once
  18. #include <CObject.h>
  19. #include <MIDI.h>                // ÑÑÑ╩!!! DANGER, WILL ROBINSON !!! ÑÑÑ
  20.                                 // You must use 2.0 version of MIDI.h, not the
  21.                                 // one included with THINK C 5.0 (ver 1.2).
  22.                                 // Otherwise, you will get compile and link errors.
  23.  
  24. #define ErrNoMIDI        -249    // MIDI MANAGER DRIVER NOT PRESENT. (It happens more
  25.                                 // often than you think╔)  Minus 249 is one more than
  26.                                 // the first real MIDI Manager error code, and does
  27.                                 // not appear to be used presently.
  28.  
  29. class CMIDIClient : public CObject
  30. {
  31. public:
  32.  
  33.             OSErr            IMIDIClient(short theIconID);
  34.     virtual    void            Dispose(void);
  35.     virtual    MIDIIDListHdl    GetPorts(void);
  36.     virtual    Boolean            WorldChanged(void);
  37.     virtual    unsigned long    GetVerNum(void);
  38.     virtual    unsigned short    GetShortVerNum(void);
  39.  
  40. private:
  41.  
  42.     unsigned long            midiMgrVerNum;        // Version number.  Also used to
  43.                                                 // determine whether signed in (if non-zero)
  44. };
  45.  
  46. // end of CMIDIClient.h